BASE_PATH=

INC_PATH=-I.    -I ../

LIBDIR=-L.  
LIB_PATH=$(LIBDIR)   -lpthread     -ldl    -lshmhash  -L../



SRCPATH= ./
CPPFILE=$(wildcard $(SRCPATH)*.cpp)
CPPOBJS=$(patsubst %.cpp,%.o,$(patsubst $(SRCPATH)%,$(OBJDIR)%,$(CPPFILE)))
	

CC1=g++
CC=gcc
COMPILE_MACRO=-g -Wall    -std=c++11  -march=x86-64   -Werror 
LINK=gcc
GEN_OPT=-g    -o2   -Werror  -Wall   -Wl,-rpath=../
#GEN_OPT=-g     -o3 -fPIC -Werror  -Wall 

OBJDIR=./
DBLIBDIR=
LIB_NAME=shmhash.so
       
all:$(CPPOBJS) 
		g++  $(GEN_OPT)  -o  testshm   $(CPPOBJS)   $(LIB_PATH) 
$(OBJDIR)%.o:$(SRCPATH)%.cpp
	$(CC1)  -c  -o3  $(COMPILE_MACRO) $(INC_PATH)  $< -o $@  
clean:
	-rm -rf $(CPPOBJS) $(DBLIBDIR)$(DBLIBNAME)
	rm -rf  shmhash
	rm -rf  core.*
	

		







  
